package com.snowfield.lbcommon.velocity.keepalived;

import java.util.ArrayList;
import java.util.List;

public class KeepalivedConfig {
    //此处IP地址不会随ka状态进行漂移
    List<String> staticIpAddressList = new ArrayList<>();

    //主机节点名称
    private String nodeName = "";
    //运行模式，双主：MASTER-MASTER,主从：MASTER-BACKUP
    private String mode = "MASTER-BACKUP";
    //设备名称，主设备：MASTER,从设备：BACKUP
    private String device = "MASTER";

    private VRRPInstance masterInstance;
    private VRRPInstance backupInstance;

    public List<String> getStaticIpAddressList() {
        return staticIpAddressList;
    }

    public void setStaticIpAddressList(List<String> staticIpAddressList) {
        this.staticIpAddressList = staticIpAddressList;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public VRRPInstance getMasterInstance() {
        return masterInstance;
    }

    public void setMasterInstance(VRRPInstance masterInstance) {
        this.masterInstance = masterInstance;
    }

    public VRRPInstance getBackupInstance() {
        return backupInstance;
    }

    public void setBackupInstance(VRRPInstance backupInstance) {
        this.backupInstance = backupInstance;
    }
}
